-
Notifications
You must be signed in to change notification settings - Fork 126
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Redirect order-status targets to customer account instead of checkout targets #4410
Conversation
We detected some changes at either packages/*/src or packages/cli-kit/assets/cli-ruby/** and there are no updates in the .changeset. |
Coverage report
Show files with reduced coverage 🔻
Test suite run success1861 tests passing in 845 suites. Report generated by 🧪jest coverage report action from e34f232 |
@@ -41,12 +34,7 @@ export function getExtensionPointTargetSurface(extensionPointTarget: string) { | |||
} | |||
|
|||
// Covers Customer Accounts UI extensions (future) | |||
case 'customeraccount': |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is from the legacy customer account targets, which are not used anymore
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The change looks good to me in general, I was just wondering about the sequencing of how this and related PRs will be shipped.
Should corresponding core PRs be built and shipped first to handle this change of how targets are handled at the CLI-level?
just as @jrrafols said, do we any plans to update related docs as well? one example https://shopify.dev/docs/apps/build/customer-accounts/pre-auth-order-status-page-extensions/build-pre-auth-order-status-page-extensions?extension=react#preview-the-extension (the 2nd preview the extension) |
In my opinion, the sequencing of this pr and core prs does not matter too much. Devs will be in order index page after this change, which will make the behaviour of the 8 order-status targets consistent. I prefer to ship this one before the core prs, because cli is version-controlled and devs could be on legacy version or new version. We need to add the change to the earlier version ASAP. |
This is a good point. Since cli is version-controlled, devs may still see legacy behaviour if they are not on the latest version. I think we can change the doc after the stable version cli is released. @brianshen1990 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I prefer to ship this one before the core prs, because cli is version-controlled and devs could be on legacy version or new version. We need to add the change to the earlier version ASAP.
Good point on versioning. I took a look and the next release is slated for Sept 16. I think it's reasonable to expect that the core changes will be available by then so I'm comfortable with this PR going out in the meantime.
As mentioned by @brianshen1990, we should also aim to have our documentation updated at around the same timeframe.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes look fine but is it possible to also make Checkout redirect to customer accounts for these targets? We can't really fix older releases of the CLI so Checkout should account for handling the legacy behaviour.
If I understand correctly, you mean: in older version, does checkout redirect to customer account for the targets? If so, the answer is yes, devs could be redirected to customer account after completing checkout in older version. Here is the difference between older and newer version Older version:
Newer version:
The main difference is that: in newer version, devs could be in customer account without going to checkout. |
Got it. That makes sense 👍 |
WHY are these changes introduced?
Fixes: https://github.com/Shopify/core-issues/issues/74362
WHAT is this pull request doing?
4 targets starting by
customer-account.order-status
were treated as checkout targets. Since, they are on customer acocunt-web, we will treat them as customer account targets instead of checkout targetsTophat
order-status
target, you should be redirected to customer accountMeasuring impact
How do we know this change was effective? Please choose one:
Checklist